package com.gopay.bis.manager.bank.payconfig.impl;

import com.gopay.bis.dao.payconfig.BisBankExtConfigDAO;
import com.gopay.bis.manager.bank.payconfig.BisBankExtConfigManager;
import com.gopay.common.constants.bank.BisBankBusinessProd;
import com.gopay.common.constants.bank.BisBankInterfaceChannel;
import com.gopay.common.domain.bis.BaseBisBankConfig;
import com.gopay.common.domain.bis.BaseBisBankExtConfig;
import com.gopay.common.domain.bis.BisBcdlIntrConfig;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * 
 * @author liujy
 *
 */
@Service("bisBankExtConfigManager")
public class BisBankExtConfigManagerImpl implements BisBankExtConfigManager{	
	
	@Resource(name="bisBankExtConfigDAO")
	private BisBankExtConfigDAO bisBankExtConfigDAO;
	
	public BaseBisBankExtConfig findExtConfigByBankCodeAndBankBusProd(
			BisBankBusinessProd prod, String bank){
		return bisBankExtConfigDAO.findExtConfigByBankCodeAndBankBusProd(prod, bank);
	}
	
	public BisBcdlIntrConfig findBcdlIntrConfigByBankCode(String bankCode){
		return bisBankExtConfigDAO.findBcdlIntrConfigByBankCode(bankCode);
	}
	
	
	public List<BaseBisBankConfig> findAllBcdlIntrConfig(){
		return bisBankExtConfigDAO.findAllBcdlIntrConfig();
	}
	
	public List<BaseBisBankConfig> findAllEbankCustConfig(){
		return bisBankExtConfigDAO.findAllEbankCustConfig();
	}

	public BaseBisBankExtConfig findExtConfigByBankChannelAndBankBusProd(
			BisBankBusinessProd prod, BisBankInterfaceChannel channel,
			String bank) {
		return bisBankExtConfigDAO.findExtConfigByBankChannelAndBankBusProd(prod, channel, bank);
	}

	public BaseBisBankExtConfig findExtConfigByBankChannel(BisBankInterfaceChannel channel) {
		return bisBankExtConfigDAO.findExtConfigByBankChannel(channel);
	}

    @Override
    public BaseBisBankExtConfig findfindExtConfigByBankBusProdAndChannel(BisBankBusinessProd prod,
            BisBankInterfaceChannel channel) {
        return bisBankExtConfigDAO.findfindExtConfigByBankBusProdAndChannel(prod, channel);
    }

}
